﻿using System;
using System.Runtime.Serialization;

namespace Pku.BookStore.Model
{
    /// <summary>
    /// 
    /// </summary>	
    [DataContract]
    public class CommentModel
    {
        #region props

        /// <summary>
        /// 自增ID
        /// </summary>
        [DataMember]
        public int CommentID
        {
            get;
            set;
        }

        /// <summary>
        /// 图书ID
        /// </summary>
        [DataMember]
        public int BookID
        {
            get;
            set;
        }

        /// <summary>
        /// 评论者ID
        /// </summary>
        [DataMember]
        public int UserID
        {
            get;
            set;
        }

        /// <summary>
        /// 评论内容
        /// </summary>
        [DataMember]
        public string Content
        {
            get;
            set;
        }

        /// <summary>
        /// 评级
        /// </summary>
        [DataMember]
        public int Level
        {
            get;
            set;
        }

        /// <summary>
        /// 标题
        /// </summary>
        [DataMember]
        public string Title
        {
            get;
            set;
        }

        /// <summary>
        /// 评论时间
        /// </summary>
        [DataMember]
        public DateTime AddDate
        {
            get;
            set;
        }

        /// <summary>
        /// 图书名
        /// </summary>
        [DataMember]
        public string BookName
        {
            get;
            set;
        }

        /// <summary>
        /// 用户名
        /// </summary>
        [DataMember]
        public string UserName
        {
            get;
            set;
        }

        #endregion
    }

}

